<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>提交成功</title>
	<link rel="stylesheet" href="{S_URL}/public/css/Global.css" />
    <script type="text/javascript" src="{S_URL}/public/js/responsive.js" ></script>
	    <style>
	    	body { background: #f6f6f6;}
	    	.space { height: 0.7rem;}
	    	.cont { text-align: center;}
	    	.cont img { height: 0.74rem; width: 0.74rem;}
	    	.cont p { color:#0b0b0b;font-size: 0.15rem;padding-top: 0.2rem;}
	    	.cont a {display: inline-block; width: 1.08rem;height: 0.4rem;line-height: 0.44rem;text-align: center;border-radius: 0.2rem;font-size: 0.14rem;color:#cdcdcd;margin: 0 0.1rem;border: #cdcdcd solid 1px; }
	   		.cont a.curr {color:#fece3a; border:#fece3a solid 1px;}
	   		.space1 {height: 0.48rem;}
	    </style>
	</head>
	<body>
		<div class="space"></div>
		<div class="cont">
			<img src="{S_URL}/public/img/acceptance/icon_right.png">
			<p>提交成功</p>
			<p>感谢您对家捷送的使用和支持！</p>
			<div class="space1"></div>
			<p>
				<a href="/public/menu/acceptance/req/orderinfo/id/$id" >完成</a>
				<a href="javascript:void(0);" onclick="luck()" class="curr">抽奖(有福利)</a>
			</p>
		</div>
		  <script type="text/javascript" src="{S_URL}/public/js/jquery-2.2.4.min.js" ></script>
		<script>
		   function luck(){
		       $.ajax({
		          url:'/public/menu/acceptance/req/luck',
		          type:'post',
		          dataType:'json',
		          data:{'id':"$id"},
		          success:function(data){
		              if(data['result'] == 'fail'){
		                  alert(data['msg']);
		              }else{
		                  location.replace("/public/menu/acceptance/req/luckdraw/id/$id");
		              }
		          }
		      })
		   }
		</script>
	</body>
</html>
